home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmScenes
- Caption = "Scenes"
- ClientHeight = 4590
- ClientLeft = 1635
- ClientTop = 945
- ClientWidth = 6150
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 4590
- ScaleWidth = 6150
- Begin VB.CommandButton cmdRandom
- Height = 255
- Left = 120
- Picture = "Scenes.frx":0000
- Style = 1 'Graphical
- TabIndex = 20
- TabStop = 0 'False
- Top = 2040
- Width = 255
- End
- Begin VB.CommandButton cmdSpiralOut
- Height = 255
- Left = 720
- Picture = "Scenes.frx":00FA
- Style = 1 'Graphical
- TabIndex = 19
- TabStop = 0 'False
- Top = 2040
- Width = 255
- End
- Begin VB.CommandButton cmdSpiralIn
- Height = 255
- Left = 420
- Picture = "Scenes.frx":01F4
- Style = 1 'Graphical
- TabIndex = 18
- TabStop = 0 'False
- Top = 2040
- Width = 255
- End
- Begin VB.PictureBox picCanvas
- AutoRedraw = -1 'True
- Height = 3885
- Left = 1200
- Picture = "Scenes.frx":02EE
- ScaleHeight = 255
- ScaleMode = 3 'Pixel
- ScaleWidth = 300
- TabIndex = 2
- Top = 120
- Width = 4560
- End
- Begin VB.PictureBox picBlank
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- Height = 480
- Left = 840
- ScaleHeight = 28
- ScaleMode = 3 'Pixel
- ScaleWidth = 29
- TabIndex = 17
- Top = 3240
- Visible = 0 'False
- Width = 495
- End
- Begin VB.CommandButton cmdRightLeft
- Height = 255
- Left = 420
- Picture = "Scenes.frx":383AC
- Style = 1 'Graphical
- TabIndex = 16
- TabStop = 0 'False
- Top = 2400
- Width = 255
- End
- Begin VB.CommandButton cmdSlide
- Height = 255
- Index = 0
- Left = 420
- Picture = "Scenes.frx":384A6
- Style = 1 'Graphical
- TabIndex = 15
- TabStop = 0 'False
- Top = 1080
- Width = 255
- End
- Begin VB.CommandButton cmdSlide
- Height = 255
- Index = 1
- Left = 120
- Picture = "Scenes.frx":385A0
- Style = 1 'Graphical
- TabIndex = 14
- TabStop = 0 'False
- Top = 1380
- Width = 255
- End
- Begin VB.CommandButton cmdSlide
- Height = 255
- Index = 2
- Left = 720
- Picture = "Scenes.frx":3869A
- Style = 1 'Graphical
- TabIndex = 13
- TabStop = 0 'False
- Top = 1380
- Width = 255
- End
- Begin VB.CommandButton cmdSlide
- Height = 255
- Index = 3
- Left = 420
- Picture = "Scenes.frx":38794
- Style = 1 'Graphical
- TabIndex = 12
- TabStop = 0 'False
- Top = 1680
- Width = 255
- End
- Begin VB.CommandButton cmdWipe
- Height = 255
- Index = 8
- Left = 720
- Picture = "Scenes.frx":3888E
- Style = 1 'Graphical
- TabIndex = 11
- TabStop = 0 'False
- Top = 720
- Width = 255
- End
- Begin VB.CommandButton cmdWipe
- Height = 255
- Index = 7
- Left = 420
- Picture = "Scenes.frx":38988
- Style = 1 'Graphical
- TabIndex = 10
- TabStop = 0 'False
- Top = 720
- Width = 255
- End
- Begin VB.CommandButton cmdWipe
- Height = 255
- Index = 6
- Left = 120
- Picture = "Scenes.frx":38A82
- Style = 1 'Graphical
- TabIndex = 9
- TabStop = 0 'False
- Top = 720
- Width = 255
- End
- Begin VB.CommandButton cmdWipe
- Height = 255
- Index = 5
- Left = 720
- Picture = "Scenes.frx":38B7C
- Style = 1 'Graphical
- TabIndex = 8
- TabStop = 0 'False
- Top = 420
- Width = 255
- End
- Begin VB.CommandButton cmdWipe
- Height = 255
- Index = 4
- Left = 420
- Picture = "Scenes.frx":38C76
- Style = 1 'Graphical
- TabIndex = 7
- TabStop = 0 'False
- Top = 420
- Width = 255
- End
- Begin VB.CommandButton cmdWipe
- Height = 255
- Index = 3
- Left = 120
- Picture = "Scenes.frx":38D70
- Style = 1 'Graphical
- TabIndex = 6
- TabStop = 0 'False
- Top = 420
- Width = 255
- End
- Begin VB.CommandButton cmdWipe
- Height = 255
- Index = 2
- Left = 720
- Picture = "Scenes.frx":38E6A
- Style = 1 'Graphical
- TabIndex = 5
- TabStop = 0 'False
- Top = 120
- Width = 255
- End
- Begin VB.CommandButton cmdWipe
- Height = 255
- Index = 1
- Left = 420
- Picture = "Scenes.frx":38F64
- Style = 1 'Graphical
- TabIndex = 4
- TabStop = 0 'False
- Top = 120
- Width = 255
- End
- Begin VB.CommandButton cmdWipe
- Height = 255
- Index = 0
- Left = 120
- Picture = "Scenes.frx":3905E
- Style = 1 'Graphical
- TabIndex = 3
- TabStop = 0 'False
- Top = 120
- Width = 255
- End
- Begin VB.PictureBox picHidden
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- Height = 4560
- Index = 1
- Left = 480
- Picture = "Scenes.frx":39158
- ScaleHeight = 300
- ScaleMode = 3 'Pixel
- ScaleWidth = 213
- TabIndex = 1
- Top = 3480
- Visible = 0 'False
- Width = 3255
- End
- Begin VB.PictureBox picHidden
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- Height = 3885
- Index = 0
- Left = 240
- Picture = "Scenes.frx":67F9A
- ScaleHeight = 255
- ScaleMode = 3 'Pixel
- ScaleWidth = 300
- TabIndex = 0
- Top = 3840
- Visible = 0 'False
- Width = 4560
- End
- Attribute VB_Name = "frmScenes"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Const pixels_per_frame = 10
- Private Const ms_per_frame = 25
- Private ActiveImage As Integer
- Private Sub cmdRandom_Click()
- picCanvas.SetFocus
- ActiveImage = 1 - ActiveImage
- TileRandom picHidden(ActiveImage), picCanvas, ms_per_frame, 7
- End Sub
- Private Sub cmdRightLeft_Click()
- picCanvas.SetFocus
- ActiveImage = 1 - ActiveImage
- PushLeftToRight picBlank, picCanvas, ms_per_frame, pixels_per_frame * 2
- PushRightToLeft picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame * 2
- End Sub
- Private Sub cmdSpiralIn_Click()
- picCanvas.SetFocus
- ActiveImage = 1 - ActiveImage
- TileSpiralIn picHidden(ActiveImage), picCanvas, ms_per_frame, 7
- End Sub
- Private Sub cmdSpiralOut_Click()
- picCanvas.SetFocus
- ActiveImage = 1 - ActiveImage
- TileSpiralOut picHidden(ActiveImage), picCanvas, ms_per_frame, 7
- End Sub
- Private Sub cmdWipe_Click(Index As Integer)
- picCanvas.SetFocus
- ActiveImage = 1 - ActiveImage
- Select Case Index
- Case 0
- WipeLLtoUR picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- Case 1
- WipeBottomToTop picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- Case 2
- WipeLRtoUL picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- Case 3
- WipeRightToLeft picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- Case 4
- WipeCenterOut picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- Case 5
- WipeLeftToRight picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- Case 6
- WipeURtoLL picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- Case 7
- WipeTopToBottom picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- Case 8
- WipeULtoLR picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- End Select
- End Sub
- Private Sub cmdSlide_Click(Index As Integer)
- picCanvas.SetFocus
- ActiveImage = 1 - ActiveImage
- Select Case Index
- Case 0
- PushBottomToTop picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- Case 1
- PushRightToLeft picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- Case 2
- PushLeftToRight picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- Case 3
- PushTopToBottom picHidden(ActiveImage), picCanvas, ms_per_frame, pixels_per_frame
- End Select
- End Sub
- Private Sub Form_Load()
- Randomize
- picCanvas.AutoSize = False
- picHidden(0).AutoSize = False
- picHidden(1).AutoSize = False
- picBlank.AutoSize = False
- ' Make the pictures the same size.
- If picHidden(0).Width > picHidden(1).Width Then
- picCanvas.Width = picHidden(0).Width
- picBlank.Width = picHidden(0).Width
- picHidden(1).Width = picHidden(0).Width
- Else
- picCanvas.Width = picHidden(1).Width
- picBlank.Width = picHidden(1).Width
- picHidden(0).Width = picHidden(1).Width
- End If
- If picHidden(0).Height > picHidden(1).Height Then
- picCanvas.Height = picHidden(0).Height
- picBlank.Height = picHidden(0).Height
- picHidden(1).Height = picHidden(0).Height
- Else
- picCanvas.Height = picHidden(1).Height
- picBlank.Height = picHidden(1).Height
- picHidden(0).Height = picHidden(1).Height
- End If
- Width = picCanvas.Left + picCanvas.Width + 120 + Width - ScaleWidth
- Height = picCanvas.Top + picCanvas.Height + 120 + Height - ScaleHeight
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- End
- End Sub
-